<template>
	<view>
		<view class="user-chat">
			<input v-model="text" placeholder-style="padding-left:20rpx;" type="text" placeholder="文明发言" class="input_value" />
			<view class="send_icon"  @tap="submit"><view class=" iconfont icon-fasong"></view></view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"chat-message",
		data() {
			return {
				text:''
			};
		},
		methods:{
			submit(){
				this.$emit('submit',this.text)
				this.text=''
			}
		}
	}
</script>

<style lang="less" scoped>
.user-chat {
	display: flex;
	padding: 15rpx 15rpx 0 15rpx;
	height: 160rpx;
	position: fixed;
	bottom: 0;
	width: 100%;
	background-color: #fff;
	left: 0;
	right: 0;
	.input_value {
		flex: 1;
		background-color: #f7f7f7;
		padding: 15rpx 0;
	}
	.send_icon {
		color: #000000;
		margin: 0 20rpx;
		width: 100rpx;
		display: flex;
		justify-content: center;
		padding-top: 20rpx;
	}
}
</style>
